package com.wuyou.designPatterns.singleton;

/**
 * 静态内部类
 */
public class Singleton5 {

    private Singleton5(){}

    public static Singleton5 getInstance(){
        return Singleton5Instance.singleton5;
    }


    private static class Singleton5Instance{
        private final static Singleton5 singleton5 = new Singleton5();
    }
}
